package com.example.controller;

import com.example.ext.entity.ExtElevator;
import com.example.service.ElevatorTypeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by youkun on 2017/10/11.
 */
@RestController
public class ElevatorTypeController {

    @Autowired
    private ElevatorTypeService elevatorTypeService;

    @ApiOperation(value = "查询电梯类型列表的信息",notes = "查询电梯类型列表的信息")
    @RequestMapping(value="api/elevatorType/getList",method = RequestMethod.POST)
    Map<String,Object> getElevatorList(){

        return elevatorTypeService.queryElevatorTypeList();
    }

}
